package com.gintama.beanlearn.config;

public class BeanOrder {
    private String orderName;
    public BeanOrder(){
        System.out.println("第一步：执行无参构造方法创建bean实例");
    }
    public void setOrderName(String orderName){
        this.orderName = orderName;
        System.out.println("第二步：调用set方法设置属性值");
    }
    public void initMethod(){
        System.out.println("第四步：执行初始化方法");
    }
    //销毁方法
    public void destroyMethod(){
        System.out.println("第七步：执行销毁方法");
    }
}
